//
//  CMDBUserControllerExceptionCodeType.swift
//  CMDB
//
//  Created by 王磊 on 17/4/5.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

enum CMDBUserControllerExceptionCodeType: String {
    
    // UserController
    case PhoneIsEmpty = "手机号码为空"
    case PhoneInvalid = "手机号不合法"
    case PasswordIsEmpty = "密码不能为空"
    case PasswordInvalid = "密码不合法"
    case NewPasswordInvalid = "新密码不合法"
    case VCodeTypeUnSelected = "验证码种类未选择"
    case VCodeInvalid = "验证码不合法"
    case InviteCodeInvalid = "邀请码不合法"
    case OldPwdNotMatchNewPwd = "旧密码新密码不匹配"
    case ConfirmPasswordInvalid = "ConfirmPasswordInvalid"
    
    case NameInvalid = "姓名为空"
    case UseNameInvalid = "曾用名为空"
    case AvatarInvalid = "头像为空"
    case BirthdayInvalid = "生日不合法"
    case EmailInvalid = "邮箱不合法"
    case GenderInvalid = "性别不合法"
    
    case TradeInvalid = "入行年份不合法"
    
    case UserInfoCacheEmpty = "用户缓存信息为空"
    
    case UnSelectedAssociate = "未选择关联作品"
    
    case ArrayCastToStringFailed = "数组转换字符串失败"
}
enum CMDBUserControllerExceptionType: ErrorType {
    
    case ExceptionCode(code: CMDBUserControllerExceptionCodeType)
}